{extend name="public/base" /}
{block name="info"}
<div class="Huialert Huialert-danger">
    <span>网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 网站地址: <span class="c-success mr-5">{WEB_SITE_URL}</span></span>
    <span class="ml-10">不知如何设置？<span><a href="http://item.taobao.com/item.htm" target="_blank">点此查看教程</a></span></span>
</div>
{/block}
{block name="style"}
<style>
    .content-box .form{border: 1px solid #e9e9e9;    padding-bottom: 20px;}
    .content-box .tabBar{border-bottom: 1px solid #e9e9e9;}
</style>
{/block}
{block name="content"}
<div class="page-container">
<div class="content-box">
	<form class="form form-horizontal" action="{:url('Config/seo')}"   id="form">
		<div id="tab-system" class="HuiTab">
			<div class="tabBar cl"><span>网站首页</span><span>分类页面</span><span>详情页面</span><span>导航栏目</span></div>
			<!--site-seo-start-->
			<div class="tabCon">
				<div class="pd-10 margin-top-15">
					网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 分类名称: <span class="c-primary mr-5">{cate_name}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">首页标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[index][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['index']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[index][keyword]" placeholder="比如：程序侠" value="{$seo['index']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">网站描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[index][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['index']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
			</div>
			<!--site-seo-end-->

			<!--goodsCate-seo-start-->
			<div class="tabCon">
				<div class="pd-10 margin-top-15">
					网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 分类名称: <span class="c-primary mr-5">{cate_name}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">分类标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[cate][title]" placeholder="比如：程序侠,程序侠官网" value="{$seo['cate']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[cate][keyword]" placeholder="比如：程序侠" value="{$seo['cate']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">分类描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[cate][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['cate']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				
			</div>
			<!--goodsCate-seo-end-->

			<!--goods-seo-start-->
			<div class="tabCon">
				<div class="pd-10 pd-10 margin-top-15">
					网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 商品标题: <span class="c-primary mr-5">{title}</span> 推荐理由: <span class="c-primary mr-5">{intro}</span> 原价: <span class="c-primary mr-5">{price}</span> 折扣价格: <span class="c-primary mr-5">{coupon_price}</span> Title: <span class="c-primary mr-5">{seo_title}</span> Keywords: <span class="c-primary mr-5">{seo_keywords}</span> Description: <span class="c-primary mr-5">{seo_description}</span>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[goods][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['goods']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[goods][keyword]" placeholder="比如：程序侠" value="{$seo['goods']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[goods][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['goods']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				
			</div>
			<!--goods-seo-end-->

			<!--nav-seo-start-->
			<div class="tabCon">
				<div class="pd-10 pd-10 margin-top-15">
					<b class="mr-10">9.9包邮页面SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 分类名称: <span class="c-primary mr-5">{cate_name}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[jiu][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['jiu']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[jiu][keyword]" placeholder="比如：程序侠" value="{$seo['jiu']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[jiu][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['jiu']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>

				<div class="pd-10 mt-20 tab-seo">
					<b class="mr-10">20元封顶SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 分类名称: <span class="c-primary mr-5">{cate_name}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[ershi][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['ershi']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[ershi][keyword]" placeholder="比如：程序侠" value="{$seo['ershi']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[ershi][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['ershi']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>

				<div class="pd-10 mt-20 tab-seo">
					<b class="mr-10">我的足迹SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 文章标题: <span class="c-primary mr-5">{title}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[history][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['history']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[history][keyword]" placeholder="比如：程序侠" value="{$seo['history']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[history][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['history']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>

				<div class="pd-10 mt-20 tab-seo">
					<b class="mr-10">优惠券直播SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 文章标题: <span class="c-primary mr-5">{title}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[live][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['live']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[live][keyword]" placeholder="比如：程序侠" value="{$seo['live']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[live][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['live']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				
			</div>

			<div class="tabCon">
				<div class="pd-10 pd-10 margin-top-15">
					<b class="mr-10">会员页面SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 分类名称: <span class="c-primary mr-5">{cate_name}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[user][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['user']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[user][keyword]" placeholder="比如：程序侠" value="{$seo['user']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[user][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['user']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<!--article-seo-end-->

				<!--user-seo-start-->
				<div class="pd-10 mt-20 tab-seo">
					<b class="mr-10">文章分类SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 分类名称: <span class="c-primary mr-5">{cate_name}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[user_cate][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['user_cate']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[user_cate][keyword]" placeholder="比如：程序侠" value="{$seo['user_cate']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[user_cate][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['user_cate']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>

				<div class="pd-10 mt-20 tab-seo">
					<b class="mr-10">文章详情页SEO:</b>[ 网站名称: <span class="c-success mr-5">{WEB_SITE_NAME}</span> 文章标题: <span class="c-primary mr-5">{title}</span> 分类Title: <span class="c-primary mr-5">{seo_title}</span> 分类Keywords: <span class="c-primary mr-5">{seo_keywords}</span> 分类Description: <span class="c-primary mr-5">{seo_description}</span> ]
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">标题：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-url" name="seo[user_detail][title]" placeholder="比如：http://www.chengxuxia.com" value="{$seo['user_detail']['title'] ?? ''}" class="input-text">
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">关键词：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<input type="text" id="website-title" name="seo[user_detail][keyword]" placeholder="比如：程序侠" value="{$seo['user_detail']['keyword'] ?? ''}" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">描述：</label>
					<div class="formControls col-xs-8 col-sm-6">
						<textarea name="seo[user__detail][description]" class="textarea" onkeyup="textarealength(this, 50)">{$seo['user_detail']['description'] ?? ''}</textarea>
					</div>
					<div class="col-xs-3 col-sm-3"></div>
				</div>
				
			</div>
			<!--user-seo-end-->
		</div>
		<div class="row cl mt-20">
			<div class="col-xs-8 col-sm-6 col-xs-offset-4 col-sm-offset-3">
				<button class="btn btn-success mr-20 radius-rounded" type="submit">&nbsp;<i class="Hui-iconfont">&#xe6a7;</i> 保存</button>
				<button type="button" class="btn btn-default radius-rounded" onclick="layer_close();">&nbsp;<i class="Hui-iconfont">&#xe6a6;</i> 取消&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script>
    $(function () {
        $("[name='status'][value='{$vo.status ?? ''}']").attr("checked", true);

        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-green',
            radioClass: 'iradio-green',
            increaseArea: '20%'
        });

        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret){
                ajax_progress(ret);
            }
        });
    })
</script>
<script type="text/javascript">
$(function(){
	$.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");
});
</script>
{/block}